package objectView;

import java.io.Serializable;

import utility.StringUtil;


public class EmSalarySheet implements Serializable {
	private String monthYear;
	private String emId;	
	private String emFullName;
	private int depId;
	private String scAM;
	private String totalAM;
	private String salaryAM;
	private String scPM;
	private String totalPM;
	private String salaryPM;
	private String scYear;
	private String salaryYear;
	private String sb;
	private String contractBenefit;
	private String totalSalary;
	
	public String getMonthYear() {
		return monthYear;
	}
	public void setMonthYear(String monthYear) {
		this.monthYear = monthYear;
	}
	public String getEmId() {
		return emId;
	}
	public void setEmId(String emId) {
		this.emId = emId;
	}	
	public String getEmFullName() {
		return emFullName;
	}
	public void setEmFullName(String emFullName) {
		this.emFullName = emFullName;
	}
	public int getDepId() {
		return depId;
	}
	public void setDepId(int depId) {
		this.depId = depId;
	}
	public String getScAM() {
		return scAM;
	}
	public void setScAM(String scNameAM, boolean apm, int scMoneyAM) {
		String str = Integer.toString(scMoneyAM);
		str = StringUtil.formatMoney(str);
		this.scAM = scNameAM + " - ngày : "+str;
	}
	public String getScPM() {
		return scPM;
	}
	public void setScPM(String scNamePM, boolean apm, int scMoneyPM) {
		String str = Integer.toString(scMoneyPM);
		str = StringUtil.formatMoney(str);
		this.scPM = scNamePM + " - đêm : "+str;
	}
	public String getSb() {
		return sb;
	}
	public void setSb(String sbName, int sbMoney) {
		String str = Integer.toString(sbMoney);
		str = StringUtil.formatMoney(str);
		this.sb = sbName + " : "+str;
	}
	public String getTotalAM() {
		return totalAM;
	}
	public void setTotalAM(String totalAM) {
		totalAM = StringUtil.replace(totalAM, ".", ",");
		this.totalAM = totalAM;
	}
	public String getSalaryAM() {
		return salaryAM;
	}
	public void setSalaryAM(String salaryAM) {
		salaryAM = StringUtil.formatMoney(salaryAM);
		this.salaryAM = salaryAM;
	}
	public String getTotalPM() {
		return totalPM;
	}
	public void setTotalPM(String totalPM) {
		this.totalPM = totalPM;
	}
	public String getSalaryPM() {
		return salaryPM;
	}
	public void setSalaryPM(String salaryPM) {
		salaryPM = StringUtil.formatMoney(salaryPM);
		this.salaryPM = salaryPM;
	}
	public String getTotalSalary() {
		return totalSalary;
	}
	public void setTotalSalary(String totalSalary) {
		totalSalary = StringUtil.formatMoney(totalSalary);
		this.totalSalary = totalSalary;
	}
	public String getScYear() {
		return scYear;
	}
	public void setScYear(String scNameYear, int scMoneyYear) {
		String str = Integer.toString(scMoneyYear);
		str = StringUtil.formatMoney(str);
		this.scYear = scNameYear + " : "+str;
	}
	public String getSalaryYear() {
		return salaryYear;
	}
	public void setSalaryYear(String salaryYear) {
		salaryYear = StringUtil.formatMoney(salaryYear);
		this.salaryYear = salaryYear;
	}
	public String getContractBenefit() {
		return contractBenefit;
	}
	public void setContractBenefit(String contractBenefit) {
		this.contractBenefit = contractBenefit + "\u0025";
	}
	
	
}
